﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
namespace Rise.Objetos
{
    class Plataforma
    {

        protected Texture2D textura;
        public Vector2 posicao;
        protected Rectangle colisao;
  

        public Rectangle Colisao
        {

            get
            {

                //AJEITA NUMEROS MAGICOS DE UMA VEZ
                return new Rectangle((int)posicao.X, (int)posicao.Y, 64, 64);

            }
            set
            {

                colisao = value;

            }

        }

        public Plataforma(Texture2D textura, float posicaoX, float posicaoY)
        {

            this.textura= textura;
            this.posicao.X = posicaoX;
            this.posicao.Y = posicaoY;
            
        }

        public void Update(GameTime gameTime)
        {



        }

      


        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {

            spriteBatch.Draw(textura, posicao, Color.White);
           
        }



    }
}
